package com.siki.pojo.commonEntity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.*;

/**
 * @Author Siki
 * @Date 2020/6/21
 */
@Getter
@Setter
@NoArgsConstructor
@ApiModel("个人用户关联岗位 - 应聘 - 实体")
@Entity
@Table(name = "apply_general_position")
public class ApplyGeneralPosition {
    //自增
    @TableId(type = IdType.ASSIGN_ID)
    @Id
    protected Long id;

    @JoinColumn(name="gu_id")
    @ManyToOne
    @TableField(exist = false)
    GeneralUser generalUser;

    @ManyToOne
    @JoinColumn(name="tp_id")
    @TableField(exist = false)
    TalentPosition talentPosition;
}
